home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / MainWP.h.z / MainWP.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  3.5 KB  |  136 lines

  1. /*
  2.  * MainWP.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: MainWP.h /main/cde1_maint/2 1995/08/18 19:10:55 drk $ */
  36. /*
  37. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  38. #ifndef _XmMainWindowP_h
  39. #define _XmMainWindowP_h
  40.  
  41. #include <Xm/MainW.h>
  42. #include <Xm/ScrolledWP.h>
  43. #include <Xm/SeparatoG.h>
  44.  
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48.  
  49.  
  50. #define DEFAULT_HEIGHT 20
  51. #define DEFAULT_WIDTH 20
  52.  
  53. /* Constraint part record for MainWindow widget */
  54.  
  55. typedef struct _XmMainWindowConstraintPart
  56. {
  57.    char unused;
  58. } XmMainWindowConstraintPart, * XmMainWindowConstraint;
  59.  
  60.  
  61. /* New fields for the MainWindow widget class record */
  62. typedef struct {
  63.    XtPointer extension;   /* Pointer to extension record */
  64. } XmMainWindowClassPart;
  65.  
  66. /****************
  67.  *
  68.  * Class record declaration
  69.  *
  70.  ****************/
  71. typedef struct _XmMainWindowClassRec {
  72.     CoreClassPart    core_class;
  73.     CompositeClassPart  composite_class;
  74.     ConstraintClassPart constraint_class;
  75.     XmManagerClassPart  manager_class;
  76.     XmScrolledWindowClassPart    swindow_class;
  77.     XmMainWindowClassPart    mwindow_class;
  78. } XmMainWindowClassRec;
  79.  
  80. externalref XmMainWindowClassRec xmMainWindowClassRec;
  81.  
  82. /****************
  83.  *
  84.  * Main Window instance structure.
  85.  *
  86.  ****************/
  87. typedef struct {
  88.  
  89.  
  90.    Dimension    AreaWidth,AreaHeight;
  91.    Dimension    margin_width,margin_height;
  92.    Widget       CommandWindow;
  93.    Widget       MenuBar;
  94.    Widget       Message;
  95.    unsigned char CommandLoc;
  96.    XmSeparatorGadget       Sep1,Sep2,Sep3;
  97.    Boolean    ManagingSep;
  98.    Boolean    ShowSep;
  99.    
  100. } XmMainWindowPart;
  101.  
  102.  
  103. /************************************************************************
  104.  *                                    *
  105.  * Full instance record declaration                    *
  106.  *                                    *
  107.  ************************************************************************/
  108.  
  109. typedef struct _XmMainWindowRec {
  110.     CorePart        core;
  111.     CompositePart   composite;
  112.     ConstraintPart constraint;
  113.     XmManagerPart   manager;
  114.     XmScrolledWindowPart   swindow;
  115.     XmMainWindowPart   mwindow;
  116. } XmMainWindowRec;
  117.  
  118.  
  119. /********    Private Function Declarations    ********/
  120. #ifdef _NO_PROTO
  121.  
  122.  
  123. #else
  124.  
  125.  
  126. #endif /* _NO_PROTO */
  127. /********    End Private Function Declarations    ********/
  128.  
  129.  
  130. #ifdef __cplusplus
  131. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  132. #endif
  133.  
  134. #endif /* _XmMainWindowP_h */
  135. /* DON'T ADD STUFF AFTER THIS #endif */
  136.